<{include file="index/header.html"}> 
<{if $smarty.get.type == 'email'}>
	<div class="nav">
		<a href="?m=api&a=config_email"<{if $smarty.get.a == 'config_email'}> class="ch"<{else}><{/if}>>邮件设置</a>
		<a href="?m=api&a=notice_tpl&type=email"<{if $smarty.get.type == 'email'}> class="ch"<{else}><{/if}>>邮件模板</a> 
	</div> 
<{elseif $smarty.get.type == 'wxtpl'}>
	<div class="nav">
		<a href="?m=api&a=config_wchat"<{if $smarty.get.a == 'config_wchat'}> class="ch"<{else}><{/if}>>微信设置</a>
		<a href="?m=api&a=notice_tpl&type=wxtpl"<{if $smarty.get.type == 'wxtpl'}> class="ch"<{else}><{/if}>>微信通知模板</a> 
		<a href="?m=wchat&a=tpl"<{if $smarty.get.a == 'tpl'}> class="ch"<{else}><{/if}>>通知模板</a>
	</div> 
<{elseif $smarty.get.type == 'sms'}> 
	<div class="cnav"><a href="javascript:;" class="back">返回短信模板</a></div> 
<{/if}> 
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>短信，邮件，微信模板消息通知的开启和关闭。</p>
		<p>模板已经为配置好的，请只对模板内容进行适当修改。</p>  
	</div> 
</div> 
<div class="main"> 
	<table width="100%" class="ltable">
		<thead>
			<tr>
				<th width="230">名称</th>
				<th width="100">类型</th>
				<th width="100">类型二</th>   
				<th width="80">状态</th> 
				<th width="180">操作</th> 
				<th></th>
			</tr>
		</thead>
		<tbody>
	<{if $data}>
		<{foreach item=i from=$data}>
			<tr>
				<td><{$i.notice_name}></td> 
				<td><{$i.type}></td>
				<td><{$i.type2}></td> 
				<td><{if $i.status}>开启<{else}>关闭<{/if}></td>
				<td><a href="javascript:;" onclick="edit_tpl('编辑配置','?m=api&a=notice_tpl_edit&id=<{$i.id}>')" class="edit">编辑</a></td> 
				<td></td>
			</tr>
		<{/foreach}>
	<{else}>
	  	<tr><td colspan="6">还没有数据，赶快添加吧！</td></tr>
	<{/if}>
	</tbody>
</table> 
</div>
<{include file="index/footer.html"}>
<script type="text/javascript"> 
function edit_tpl(name,url){
	parent.dialog(name, url,600, 350); 
} 
</script>
